﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Caching;
using System.Net;
using System.IO;

namespace Web.Admin.Config
{
    public partial class SenDong : BaseCode.BaseAdmin
    {

        protected void Page_Load(object sender, EventArgs e)
        {
            ShowInfo();
        }

        private void ShowInfo()
        {
            if (Cache["sendong"] != null)
                this.Literal1.Text = Cache["sendong"].ToString();
            else
                this.Literal1.Text = "还没开始刷积分";
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Web.BaseCode.CommValue.AddItemToCache();
            ShowInfo();
        }

        protected void Button2_Click(object sender, EventArgs e)
        {
            Web.BaseCode.CommValue.RemoveItemFromCache();
            ShowInfo();
        }

        protected void Button3_Click(object sender, EventArgs e)
        {
            ShowInfo();
        }
    }
}